package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.qo.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Permission record);
    Permission selectByPrimaryKey(Long id);
    List<Permission> selectAll();
    List<Permission> selectForList(QueryObject qo);
    List<String> selectAllExpression();
    List<String> selectExpressionsByEmployeeId(Long employeeId);

    void deleteByRelation(Long permissionId);

    List<String> selectAllPermissions();
}